package org.feiye.studyday22.enumdemo;

public class TestWeek {
	public void doWhat(Week d) {
		switch (d) {
		case MON:
		case TUE:
		case WED:
		case THU:
		case FRI:
			System.out.println("上课");
			break;
		case SAT:
			System.out.println("自习");
			break;
		case SUN:
			System.out.println("复习");
			break;
		}
	}

	public static void main(String[] args) {
		TestWeek t = new TestWeek();
		t.doWhat(Week.SUN);
	}
}
